/**
 *====================================================
 * 文件名称: NewsCategory.java
 * 修订记录：
 * No    日期				作者(操作:具体内容)
 * 1.    2015年9月21日			chenxy(创建:创建文件)
 *====================================================
 * 类描述：(说明未实现或其它不应生成javadoc的内容)
 */
package com.yuexunit.finance.news.entity;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import com.yuexunit.finance.news.entity.lexicon.CategoryTypeEnum;

/**
 * @ClassName: NewsCategory
 * @Description: TODO(这里用一句话描述这个类的作用)
 * @author chenxy
 * @date 2015年9月21日 下午6:04:09
 */
@Entity
@Table(name = "FIN_NEWS_CATEGORY")
public class NewsCategoryEntity {

	/** 栏目ID */
	@Id
	@GeneratedValue
	@Column(name = "NEWS_CATEGORY_ID")
	private Long newsCategoryId;

	/** 栏目名称 */
	@Column(name = "CATEGORY_NAME")
	private String categoryName;

	/** 栏目类型 0:未知/1:资讯/2:帮助文档 */
	@Column(name = "CATEGORY_TYPE")
	private CategoryTypeEnum categoryType;

	/** 删除标记 */
	@Column(name = "ENABLED")
	private Boolean enabled;

	/** 创建时间 */
	@Column(name = "CREATE_DT")
	private Date createDateTime;

	/** 最后更新时间 */
	@Column(name = "UPDATE_DT")
	private Date updateDateTime;

	public Long getNewsCategoryId() {
		return newsCategoryId;
	}

	public void setNewsCategoryId(Long newsCategoryId) {
		this.newsCategoryId = newsCategoryId;
	}

	public String getCategoryName() {
		return categoryName;
	}

	public void setCategoryName(String categoryName) {
		this.categoryName = categoryName;
	}

	public Boolean getEnabled() {
		return enabled;
	}

	public void setEnabled(Boolean enabled) {
		this.enabled = enabled;
	}

	public Date getCreateDateTime() {
		return createDateTime;
	}

	public void setCreateDateTime(Date createDateTime) {
		this.createDateTime = createDateTime;
	}

	public Date getUpdateDateTime() {
		return updateDateTime;
	}

	public void setUpdateDateTime(Date updateDateTime) {
		this.updateDateTime = updateDateTime;
	}

	public CategoryTypeEnum getCategoryType() {
		return categoryType;
	}

	public void setCategoryType(CategoryTypeEnum categoryType) {
		this.categoryType = categoryType;
	}

	@Override
	public String toString() {
		return "NewsCategoryEntity{" + "newsCategoryId=" + newsCategoryId + ", categoryName='" + categoryName + '\'' + ", enabled=" + enabled + ", createDateTime=" + createDateTime + ", updateDateTime=" + updateDateTime + '}';
	}
}
